package com.example.test;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class TeacherloginActivity extends AppCompatActivity {

    private Button student;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_teacherlogin);
        init();
        student.setOnClickListener(new MyOnClickListener());
    }

    public void get()
    {
        Intent intent=new Intent(TeacherloginActivity.this,com.example.test.student.MainActivity.class);
        Bundle bundle=new Bundle();
        bundle.putBoolean("status",true);
        intent.putExtras(bundle);
        startActivity(intent);
    }

    class MyOnClickListener  implements View.OnClickListener
    {

        @Override
        public void onClick(View v) {
            switch (v.getId()){
                case R.id.student_button: get();
                    break;

            }
        }
    }
    public void init(){
        student = findViewById(R.id.student_button);
    }
}